﻿import request from '@/utils/request';
// list
export const huansuxinxiList = (params) => {
    return request({
        url: '/huansuxinxi/page',
        method: 'post',
        data: params,
    })
};
export const huansuxinxiDetail = (id) => {
    return request({
        url: '/huansuxinxi/'+id,
        method: 'get',
    })
};
// add
export const huansuxinxiSave = (params) => {
    return request({
        url: '/huansuxinxi',
        method: 'post',
        data: params,
    })
};
// updt
export const huansuxinxiEdit = (params) => {
    return request({
        url: '/huansuxinxi',
        method: 'put',
        data: params,
    })
};
// delete
export const huansuxinxiDelete = (id) => {
    return request({
        url: '/huansuxinxi/'+id,
        method: 'delete',
    })
};
// pldel
export const huansuxinxiDeleteList = (huansuxinxis) => {
    return request({
        url: '/huansuxinxi/deleteList',
        data:{list:huansuxinxis},
        method: 'post',
    })
};
// all
export const huansuxinxiAllList = () => {
    return request({
        url: '/huansuxinxi',
        method: 'get',
    })
};

